package com.nuoniu.sibanyun.mapper.cm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.cm.CmContractClause;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 合同条款 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-21
 */
public interface CmContractClauseMapper extends BaseMapper<CmContractClause> {

    /**
     * 根据名称获取
     * @author 小啊刚
     * @date 2021-10-21
     */
    @Select("select * from cm_contract_clause where company_id=#{companyId} and name=#{name}")
    CmContractClause getByName(CmContractClause contractClause);

    /**
     * 根据编码获取
     * @author 小啊刚
     * @date 2021-10-21
     */
    @Select("select * from cm_contract_clause where company_id=#{companyId} and code=#{code}")
    CmContractClause getByCode(CmContractClause contractClause);

}
